package com.siyue.test1.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.siyue.test1.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface StudentMapper extends BaseMapper<Student> {
    boolean saveStudent(@Param("students") List<Student> students);

    //获取学生数量
    int getStudentSize();

    List<Student> studentList(Page page);

    Student getStudentByName(@Param("sqlFiled") String sqlFiled, @Param("name") String name);

    List<Student> getStudentList(@Param("start") Integer start, @Param("end") Integer end);

    List<Student> studentListByLimit(@Param("start") Integer start, @Param("end") Integer end);
//    List<Student> queryList();
}
